﻿/*
 * PsTFS is a set of PowerShell commands to manage and use Team Foundation Server. PowerShell 
 * effectiveness is combined with the power of TFS API to maximizes TFS capabilities.
 * 
 * Creator : Choulant Noham
 * Mail : choulant@gmail.com
 * Blog : http://choulant.blogspot.com
 * 
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management.Automation;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.VersionControl.Client;
using System.Collections;
using Microsoft.TeamFoundation.Server;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using PowerShell.Host.PsTFS.CdmLet.PsObject;


namespace PowerShell.Host.PsTFS.CdmLet
{
    /// <summary>
    /// Permet l'éxcution d'une requete
    /// </summary>
    [Cmdlet(VerbsCommon.Get, "LogTFS")]
    public class Get_LogTFS: Cmdlet
    {
        protected override void ProcessRecord()
        {
            PsLog.bLog = OnLog;
            
            WriteObject(PsLog.GetLog());

        }

        [Parameter(Position = 0)]
        [ValidateNotNullOrEmpty]
        public bool OnLog {get;set;}
    }

}